package cn.cdqf.mapper;


import cn.cdqf.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    List<User> queryAllUser();

    int updateUser(@Param("user") User user,@Param("id") int id);

    int deleteUser(@Param("id") int id);

    int addUser(@Param("user") User user);

    User queryUserById(@Param("id") int id);
}
